<!DOCTYPE html>
<html>
<head>
    <title>纸箱质料</title>
		<#include "/header.html">
		<link rel="stylesheet" href="${request.contextPath}/statics/css/businessbill.css">
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
			<#if shiro.hasPermission("erp:paperinfo:save")>
            <a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			</#if>
			<#if shiro.hasPermission("erp:paperinfo:update")>
            <a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			</#if>
			<#if shiro.hasPermission("erp:paperinfo:delete")>
            <a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			</#if>
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
														                    <div class="form-group">
                        <div class="col-sm-2 control-label">纸箱编码</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="paperInfo.paperCode" placeholder="纸箱编码"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">纸质</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="paperInfo.paperName" placeholder="纸质"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">纸类</div>
                        <div class="col-sm-10">
<!--                             <input type="text" class="form-control" v-model="paperInfo.paperType" placeholder="纸类"/> -->
							 <el-select v-model="paperInfo.paperType" placeholder="请选择">
							    <el-option
							      v-for="item in paperTypeList"
							      :key="item.paperTypeId"
							      :label="item.paperType"
							      :value="item.paperType">
							    </el-option>
							  </el-select>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">默认重量</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="paperInfo.paperWeight" placeholder="默认重量"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">边压强度</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="paperInfo.sideStrength" placeholder="边压强度"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">纸板耐破度</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="paperInfo.paperBreak" placeholder="纸板耐破度"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">厚度</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="paperInfo.paperHeight" placeholder="厚度"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">成本价</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="paperInfo.costMoney" placeholder="成本价"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">备注</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="paperInfo.remark" placeholder="备注"/>
                        </div>
                    </div>
<!-- 											                    <div class="form-group"> -->
<!--                         <div class="col-sm-2 control-label">停用(0:停用1:使用)</div> -->
<!--                         <div class="col-sm-10"> -->
<!--                             <input type="text" class="form-control" v-model="paperInfo.status" placeholder="停用(0:停用1:使用)"/> -->
<!--                         </div> -->
<!--                     </div> -->
							            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
                &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
            </div>
        </form>
    </div>
</div>

<script src="${request.contextPath}/statics/js/modules/erp/paperinfo.js?_${.now?long}"></script>
</body>
</html>